package exec

import (
	"operator/controllers/exec"

	"github.com/gin-gonic/gin"
)

// 实现Exec接口
func execapi(execGroup *gin.RouterGroup) {
	execGroup.GET("/ping", exec.Exec)
}

// 注册路由的方法
func RegisterSubRouter(g *gin.RouterGroup) {
	execGroup := g.Group("/exec")
	execapi(execGroup)
}
